
import http from "@/http";

export default{
    select:{
        name:'查询分类',
        path:"/api/category",
        call:async function (params:any = {}) {
            return await http.get(this.path,params)
        }
    },
    add:{
        name:'添加分类',
        path:"/api/category",
        call:async function (body:any = {}) {
            return await http.post(this.path,body)
        }
    },
    update:{
        name:'修改分类',
        path:"/api/category",
        call:async function (body:any = {}) {
            return await http.put(this.path,body)
        }
    },
    delete:{
        name:'删除分类',
        path:"/api/category",
        call:async function (params:any = {}) {
            return await http.delete(this.path,params)
        }
    }    
}